<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.2/??flexible_css.js,flexible.js"></script>
		<link rel="stylesheet" type="text/css" href="css/gwc.css"/>
		<link rel="stylesheet" type="text/css" href="css/public.css"/>
	</head>
	<body>
		<header>
			<div class="d1">
				<div class="fh">
					
				</div>
			</div>
			<div class="d2">
				购物车
			</div>
			<div class="d3">
				<img src="nimg/n1.png" >
			</div>
		</header>
		<div style="height: 1.3rem;">
			
		</div>
		<div class="nr">
			<div class="dx">
				登录后享更多优惠
			</div>
			
			<div class="dx2">
				去登录
				<div class="fh2">
					
				</div>
			</div>
		</div>
		<div id="nr2">
			<div class="nr2">
				<span class="mm">购物车还是空的</span>
				<em>去逛逛</em>
			</div>
		</div>
		
		<div class="nr2_ygw">
			<div id="yuan" class="ygw_ys1">
				
			</div>
			<img class="ygw_ys2" src="gwcimg/ygw1.jpg.jpeg" >
			<div class="ygw_ys3">
				<span>Xiaomi 11 UItra</span><br />
				<span>12GB+256GB陶瓷白</span><br />
				<p>售价：<a id="djg">5999</a>元</p>
				<div class="yg2_ys3_zys">
					<div class="yg2_ys3_zys_jg">
						<div class="jg1">
							<img src="gwcimg/jg1.png" >
						</div>
						<div class="jg2">
							1
						</div>
						<div class="jg3">
							<img src="gwcimg/jg2.png" >
						</div>
					</div>
					<img id="ljl" class="ljl" src="gwcimg/ygw3.png" >
				</div>
			</div>
		</div>
		<div id="nr3">
			<div class="nr3">
					<div class="nr3_nr">
						<div style="width: 95%;display: flex;align-items: center;">
							<img src="gwcimg/ygw2.png" >
							<div style="width: 76%;">
								<span>MiCare保障服务949元</span>
							</div>
							<p>选购</p>
						</div>
					</div>
				<div class="nr3_nr">
					<div style="width: 95%;display: flex;align-items: center;">
						<img src="gwcimg/ygw2.png" >
						<div style="width: 76%;">
							<span>MiCare保障服务949元</span>
						</div>
						<p>选购</p>
					</div>
				</div>
				<div class="nr3_nr">
					<div style="width: 95%;display: flex;align-items: center;">
						<img src="gwcimg/ygw2.png" >
						<div style="width: 76%;">
							<span>MiCare保障服务949元</span>
						</div>
						<p>选购</p>
					</div>
				</div>
				<div class="nr3_nr">
					<div style="width: 95%;display: flex;align-items: center;">
						<img src="gwcimg/ygw2.png" >
						<div style="width: 76%;">
							<span>MiCare保障服务949元</span>
						</div>
						<p>选购</p>
					</div>
				</div>
				<div class="nr3_nr">
					<div style="width: 95%;display: flex;align-items: center;">
						<img src="gwcimg/gwc1.jpg" >
						<div style="width: 66%;">
							<span>MiCare保障服务949元</span>
						</div>
						<p>99元</p>
						<p>选购</p>
					</div>
				</div>
			</div>
		</div>
		<div style="height: 0.2rem;">
			
		</div>
		<div class="jc">
			温馨提示：产品是否购买成功，以最终下单为准，请尽快结算
		</div>
		<div style="height: 0.2rem;">
			
		</div>
		<div class="sa">
			<img src="gwcimg/sptj.png" >
		</div>
		<div class="si">
			<div class="sk">
				<div>
					<img src="gwcimg/sp2.jpg" >
				</div>
				<div>
					<a id="a1">Redmi Note 10 5G</a><br>
					<a id="a2">￥1099</a>
				</div>
			</div>
			<div class="sk">
				<div>
					<img src="gwcimg/sp3.jpg" >
				</div>
				<div>
					<a id="a1">米家除螨仪</a><br>
					<a id="a2">￥199</a>
				</div>
			</div>
		</div>
		<div class="si">
			<div class="sk">
				<div>
					<img src="gwcimg/sp4.jpg" >
				</div>
				<div>
					<a id="a1">Redmi Note 10 5G</a><br>
					<a id="a2">￥1099</a>
				</div>
			</div>
			<div class="sk">
				<div>
					<img src="gwcimg/sp5.jpg" >
				</div>
				<div>
					<a id="a1">米家除螨仪</a><br>
					<a id="a2">￥199</a>
				</div>
			</div>
		</div>
		<div class="si">
			<div class="sk">
				<div>
					<img src="gwcimg/sp2.jpg" >
				</div>
				<div>
					<a id="a1">Redmi Note 10 5G</a><br>
					<a id="a2">￥1099</a>
				</div>
			</div>
			<div class="sk">
				<div>
					<img src="gwcimg/sp3.jpg" >
				</div>
				<div>
					<a id="a1">米家除螨仪</a><br>
					<a id="a2">￥199</a>
				</div>
			</div>
		</div>
		<div class="si">
			<div class="sk">
				<div>
					<img src="gwcimg/sp2.jpg" >
				</div>
				<div>
					<a id="a1">Redmi Note 10 5G</a><br>
					<a id="a2">￥1099</a>
				</div>
			</div>
			<div class="sk">
				<div>
					<img src="gwcimg/sp3.jpg" >
				</div>
				<div>
					<a id="a1">米家除螨仪</a><br>
					<a id="a2">￥199</a>
				</div>
			</div>
		</div>
		<div class="si">
			<div class="sk">
				<div>
					<img src="gwcimg/sp2.jpg" >
				</div>
				<div>
					<a id="a1">Redmi Note 10 5G</a><br>
					<a id="a2">￥1099</a>
				</div>
			</div>
			<div class="sk">
				<div>
					<img src="gwcimg/sp3.jpg" >
				</div>
				<div>
					<a id="a1">米家除螨仪</a><br>
					<a id="a2">￥199</a>
				</div>
			</div>
		</div>
		<div class="si">
			<div class="sk">
				<div>
					<img src="gwcimg/sp2.jpg" >
				</div>
				<div>
					<a id="a1">Redmi Note 10 5G</a><br>
					<a id="a2">￥1099</a>
				</div>
			</div>
			<div class="sk">
				<div>
					<img src="gwcimg/sp3.jpg" >
				</div>
				<div>
					<a id="a1">米家除螨仪</a><br>
					<a id="a2">￥199</a>
				</div>
			</div>
		</div>
		<div class="si">
			<div class="sk">
				<div>
					<img src="gwcimg/sp2.jpg" >
				</div>
				<div>
					<a id="a1">Redmi Note 10 5G</a><br>
					<a id="a2">￥1099</a>
				</div>
			</div>
			<div class="sk">
				<div>
					<img src="gwcimg/sp3.jpg" >
				</div>
				<div>
					<a id="a1">米家除螨仪</a><br>
					<a id="a2">￥199</a>
				</div>
			</div>
		</div>
		<div class="si">
			<div class="sk">
				<div>
					<img src="gwcimg/sp2.jpg" >
				</div>
				<div>
					<a id="a1">Redmi Note 10 5G</a><br>
					<a id="a2">￥1099</a>
				</div>
			</div>
			<div class="sk">
				<div>
					<img src="gwcimg/sp3.jpg" >
				</div>
				<div>
					<a id="a1">米家除螨仪</a><br>
					<a id="a2">￥199</a>
				</div>
			</div>
		</div>
		<div class="si">
			<div class="sk">
				<div>
					<img src="gwcimg/sp2.jpg" >
				</div>
				<div>
					<a id="a1">Redmi Note 10 5G</a><br>
					<a id="a2">￥1099</a>
				</div>
			</div>
			<div class="sk">
				<div>
					<img src="gwcimg/sp3.jpg" >
				</div>
				<div>
					<a id="a1">米家除螨仪</a><br>
					<a id="a2">￥199</a>
				</div>
			</div>
		</div>
		<div class="si">
			<div class="sk">
				<div>
					<img src="gwcimg/sp2.jpg" >
				</div>
				<div>
					<a id="a1">Redmi Note 10 5G</a><br>
					<a id="a2">￥1099</a>
				</div>
			</div>
			<div class="sk">
				<div>
					<img src="gwcimg/sp3.jpg" >
				</div>
				<div>
					<a id="a1">米家除螨仪</a><br>
					<a id="a2">￥199</a>
				</div>
			</div>
		</div>
		<div class="gwbottom">
			<div>
				<div style="width: 100%;text-align: center;">
					共<a id="sl2">1</a>件 金额：<br />
					<p id="zj">5999</p>元
				</div>
			</div>
			<div id="js1">
				继续购物
			</div>
			<div id="js2">
				去结算
			</div>
		</div>
		<div id="bottom">
			
		<div class="bottom">
				<div id="sy">
					<img src="img/bottom.png" ><br>
					<a>首页</a>
				</div>
				<div id="fl"> 
					<img src="img/bottom2.png" ><br>
					<a>分类</a>
				</div>
				<div id="mq">
					<img src="img/bottom3.png" ><br>
					<a>米圈</a>
				</div>
				<div id="gwc">
					<img src="img/bs4.png" ><br>
					<a style="color: #FF6700;">购物车</a>
				</div>
				<div id="wd">
					<img src="img/bottom5.png" ><br>
					<a>我的</a>
				</div>
			</div>
			</div>
			<script type="text/javascript">
				var yuan=document.querySelector("#yuan");
				var nr3=document.querySelector("#nr3");
				var ljl=document.querySelector("#ljl");
				var nr2=document.querySelector("#nr2");
				var ner2_ygw=document.querySelector(".nr2_ygw");
				var jg1=document.querySelector(".jg1");
				var jg2=document.querySelector(".jg2");
				var jg3=document.querySelector(".jg3");
				var zj=document.querySelector("#zj");
				var sl2=document.querySelector("#sl2");
				var djg=document.querySelector("#djg").innerText;
				var bottom=document.querySelector("#bottom");
				var sl=1;
				var sum=0;
				var bl=true;
				ljl.onclick=function(){
					ner2_ygw.style.display="none";
					nr3.style.display="none";
					nr2.style.display="block";
					bottom.style.display="block";
					sl2.innerText=0;
					zj.innerText=0;
				}					
				
				yuan.onclick=function(){
					if(bl){
						yuan.className=" ygw_ys1_2";
						nr3.style.display="none";
						sl2.innerText=0;
						zj.innerText=0;
						bl=false;
					}else{
						yuan.className=" ygw_ys1";
						nr3.style.display="block";
						sum=(djg*sl);
						sl2.innerText=sl;
						zj.innerText=sum;
						bl=true;
					}
				}
			
				
				jg1.onclick=function(){
					if(sl==1){
						jg1.style.opacity=".3";
					}else{
						sl--;
						sum=(djg*sl);
						jg2.innerText=sl;
						if(bl){
							zj.innerText=sum;
							sl2.innerText=sl;
						}
					}
				
				}
				jg3.onclick=function(){
					sl++;
					sum=(djg*sl);
					jg2.innerText=sl;
					jg1.style.opacity="0.8";
					if(bl){
						zj.innerText=sum;
						sl2.innerText=sl;
					}
				}
			
			
				var sy=document.querySelector(".fh");
				sy.onclick=function(){
					javascript:history.back();
				}
				var gwc=document.querySelector(".nr");
				gwc.onclick=function(){
					window.location.href="my.html";
				}
				var sy=document.querySelector("#sy");
				var wd=document.querySelector("#wd");
				var fl=document.querySelector("#fl");
				var mq=document.querySelector("#mq");
				mq.onclick=function(){
					window.location.href="miquan.html";
				}
				fl.onclick=function(){
					window.location.href="fenlei.html";
				}
				wd.onclick=function(){
					window.location.href="my.html";
				}
				sy.onclick=function(){
					window.location.href="index.html";
				}
				var js1=document.querySelector("#js1");
				var js2=document.querySelector("#js2");
				js1.onclick=function(){
					window.location.href="index.html";
				}
				js2.onclick=function(){
					window.location.href="jsy.html";
				}
				var bl = window.location.hash.slice(1).split('?');
				var ztm;
				if(bl.length >= 1){
					for(var i = 0; i < bl.length; i += 1){
						switch (bl[i].split('=')[0]) {
							case 'ztm':
								ztm=bl[i].split('=')[1];
							break;
							default:
							null;
							break;
						}
					}
					
					
				}
				if(ztm==1){
					ner2_ygw.style.display="block";
					ner2_ygw.style.display="flex";
					nr3.style.display="block";
				}else{
					ner2_ygw.style.display="none";
					nr3.style.display="none";
					nr2.style.display="block";
					bottom.style.display="block";
					sl2.innerText=0;
					zj.innerText=0;
				}
			</script>
	</body>
</html>
